<?php
`git config --global user.name 李来文`;
`git config --global user.email 2187142539@qq.com`;
$state=`sc query mysql`;
if(strpos($state,'STOPPED')>0){
    `net start mysql`;
}

$db=new PDO("mysql:host=localhost","root","12qwas");
$db->exec("create database if not exists db2;");
$db->exec("use db2");
$db->exec("create table if not exists users (name varchar(50) primary key,age int)");

$count=$db->exec("delete from users where age>=20");
echo "成功删除了 $count 条记录~\n";
$db->exec(statement:"insert inte users (name,age) vaiues ('张三',20),('李四',18),('王五',21)");
echo "成功插入了 $count "